<!-- End of Content -->
</div>

<div id="Menu">
<a href="index.php" title="Client Login Home Page">Client Login Home</a><br />
<?php # Script 16.2 - footer.html
// This page completes the HTML template.

// Display links based upon the login status:
if (isset($_SESSION['user_id'])) {

	echo '<a href="logout.php" title="Logout">Logout</a><br />
<a href="change_password.php" title="Change Your Password">Change Password</a><br />

';

	// Add links if the user is an administrator:
	if ($_SESSION['user_level'] == 1) {

		echo '<br /><h4>Administrator</h4>';
		echo '<a href="view_users.php" title="View Users">View Users</a><br />

';

	}
	
} else { //  Not logged in.

	echo '<a href="register.php" title="Register for the Site">Register</a><br />
<a href="login.php" title="Login">Login</a><br />
<a href="forgot_password.php" title="Password Retrieval">Retrieve Password</a><br />
';

}
?>

</div>
</body>
</html>
<?php // Flush the buffered output.
ob_end_flush();
?>
